package com.fucking.great.context.plun;

import com.fucking.great.context.util.GetMapDecorator;

import java.util.Map;

/**
 * 用于调用方法.
 */
public class ConfigerPlug extends BasePlug{
    public static final String PLUN_NAME = "configer";

    public ConfigerPlug(Map<String, String> config) {
        super( config,new String[]{
                GetMapDecorator.class.getName()
        });
    }

    @Override
    protected void initUserPlunMap(Map<String, Object> userPlun) {

        GetMapDecorator<String, String> configer = this.getConfig();
        //
        userPlun.put(PLUN_NAME,configer);
    }

}
